WooCommerce\Square\Handlers\Order B

Total Complexity 90
Dependencies 7
Dependents 4
Total lines 699
Lines of code 318
Logical lines of code 168
Comment lines 274
Methods 27
Properties 2

Methods 27

Method Rating Maintainability Complexity Lines of code
maybe_sync_stock_for_refund_from_other_gateway()
A
45 13 40
maybe_stage_stock_updates_for_product()
A
53 10 21
filter_gateway_title()
A
55 8 18
maybe_stage_inventory_updates_for_product()
S
59 7 13
cache_previous_stock()
S
60 6 13
maybe_sync_staged_inventory_updates()
S
55 5 20
maybe_sync_inventory_for_stock_increase()
S
56 5 18
maybe_sync_stock_for_order_via_paypal()
S
60 5 14
filter_payment_method_title()
S
55 4 20
add_admin_order_items()
S
47 2 48
__construct()
S
55 2 18
filter_order_item_totals()
S
58 2 15
maybe_sync_stock_for_store_api_order_via_other_gateway()
S
70 3 6
maybe_sync_stock_for_order_via_other_gateway()
S
70 3 6
get_gift_card_total_refunded_amount()
S
71 2 5
sync_stock_for_order()
S
65 2 9
cache_product_previous_stock()
S
79 1 3
hide_square_order_item_meta()
S
77 1 4
is_tender_type_gift_card()
S
78 1 3
set_gift_card_total_charged_amount()
S
78 1 3
get_gift_card_total_charged_amount()
S
78 1 3
get_gift_card_last4()
S
79 1 3
set_gift_card_last4()
S
78 1 3
set_gift_card_total_refunded_amount()
S
78 1 3
set_order_total_before_gift_card()
S
78 1 3
get_order_total_before_gift_card()
S
78 1 3
is_tender_type_card()
S
78 1 3